package com.lovo.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.lovo.model.UserDO;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.*;

@Configuration
@ComponentScan(basePackages = "com.lovo")
@PropertySource("classpath:db.properties")
public class ApplicationConfig {

//    @Bean
//    public UserDO userDO(){
//        return new UserDO();
//    }
    @Bean
    public ObjectMapper objectMapper(){
        return new ObjectMapper();
    }
}
